<template>
  <Wrapper>
    <el-card header="默认" shadow="never">
      <indicator />
    </el-card>
    <el-card class="card-box" shadow="never">
      <template #header>
        各种状态的：
        <el-space :size="20" wrap>
          <template v-for="item in ['primary', 'success', 'warning', 'danger', 'info']" :key="item">
            <el-tag :type="item">{{ item }}</el-tag>
          </template>
        </el-space>
      </template>
      <el-row>
        <div class="btn flex">
          <el-button>primary</el-button>
          <indicator />
        </div>
      </el-row>
      <el-row>
        <div class="btn flex">
          <el-button>success</el-button>
          <indicator type="success" />
        </div>
      </el-row>
      <el-row>
        <div class="btn flex">
          <el-button>warning</el-button>
          <indicator type="warning" />
        </div>
      </el-row>
      <el-row>
        <div class="btn flex">
          <el-button>danger</el-button>
          <indicator type="danger" />
        </div>
      </el-row>
      <el-row>
        <div class="btn flex">
          <el-button>info</el-button>
          <indicator type="info" />
        </div>
      </el-row>
    </el-card>
    <el-card class="card-box" header="没有动画" shadow="never">
      <indicator :pulse="false" />
    </el-card>
    <el-card class="card-box" header="自定义大小和颜色" shadow="never">
      <indicator color="pink" size="18" />
    </el-card>
  </Wrapper>
</template>

<script setup>
import indicator from '@/components/indicator'
</script>

<style lang="scss" scoped>
:deep(.el-row) {
  margin-bottom: 12px;
}

.btn {
  width: 120px;
  justify-content: space-between;
}
</style>
